home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / blueprnt / bpecho.asm < prev    next >
Assembly Source File  |  1989-09-27  |  1KB  |  42 lines

  1. ;************************************************************
  2. ;* Echo Message to BP-LAN Socket   (BPECHO.ASM, BPECHO.COM) *
  3. ;* by Craig Chaiken                                         *
  4. ;* September 21, 1989                                       *
  5. ;*                                                          *
  6. ;* Function: Echo Message in Command line to Defined Socket *
  7. ;*                                                          *
  8. ;* Command Format:                                          *
  9. ;*      BPECHO /socket /message                             *
  10. ;************************************************************
  11.  
  12. codeseg segment byte
  13.         assume  cs:codeseg,ds:codeseg,es:codeseg
  14.         org     100h
  15. start:  jmp     echo
  16. ;
  17. socket_num      db      0
  18.  
  19.         include bpbioshd.mod
  20.         include misc.mod
  21.  
  22. echo    proc    near                            ;Exit if no Parameters
  23.         mov     al,cs:[80h]
  24.         or      al,al
  25.         jnz     echo1
  26.         jmp     echo3
  27. echo1:  mov     si,81h
  28.         call    get_opt
  29.         jb      echo3
  30.         mov     socket_num,cl
  31.         call    wslash
  32. echo2:  mov     al,[si]
  33.         bpbios  phys_int,transmit_byte,socket_num
  34.         inc     si
  35.         cmp     al,13
  36.         jnz     echo2
  37. echo3:  int     20h
  38. echo    endp
  39.  
  40. codeseg ends
  41.         end     start
  42.